
using UnityEngine;

public class PlayerState_Idle : PlayerState
{
    public override void Enter()
    {
        motor.SetMoveVelocity(Vector2.zero);        
    }
    public override void LogicalUpdate()
    {
        if(input.IsInputMove)
        {
            manager.SwitchState(typeof(PlayerState_Move));
        }
        if(!motor.isOnGround)
        {
            manager.SwitchState(typeof(PlayerState_Fall));
        }
        if(input.IsInputJump)
        {
            manager.SwitchState(typeof(PlayerState_Jump));
        }
    }
}
